package com.sizu.service;

import com.alibaba.fastjson.JSON;
import com.sizu.common.dto.PurchaseListDto;
import com.sizu.common.dto.ReturnListDto;
import com.sizu.common.saledto.TCustomerReturnListDto;
import com.sizu.common.saledto.TSaleListDto;
import org.springframework.beans.BeanUtils;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("jxc-back")
public interface SyncService {
    /**
     * 进货同步
     * @param purchaseListDto
     */
    @RequestMapping("/statement/purchase")
    public void syncPurchase(@RequestBody PurchaseListDto purchaseListDto);

    /**
     * 退购同步
     * @param returnListDto
     */
    @RequestMapping("/statement/return")
    public void syncReturn(@RequestBody ReturnListDto returnListDto);


}
